package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IAdv
import fhp.hlhj.giantfold.javaBean.AdvBean
import fhp.hlhj.giantfold.module.AdvModule

/**
 * author: FHP
 * data: on 2018\1\24 0024 9:51
 * E-Mail: 103945089@qq.com
 */
class AdvPresenter(private val iAdv: IAdv) : AdvModule.AdvListener {
    override fun showLoading() {
        iAdv.showLoading()
    }

    override fun onAdvListener(advBean: AdvBean) {
        iAdv.getADV(advBean)
    }

    private val advModule=AdvModule()

    fun getAdv(params: HttpParams){
        advModule.getADV(params,this)
    }
}